function reporte(data,detect){
    if(detect==true){
        if(data=="paperTrack"){
            if(frmReportePaperTrack.track.value==""){
                alert("Debe seleccionar un track.");
            }else{
                document.frmReportePaperTrack.submit();
            }
        }else{
            if(frmReporteRevisorTrack.track.value==""){
                alert("Debe seleccionar un track.");
            }else{
                document.frmReporteRevisorTrack.submit();
            }
        }
    }else{
        if(data=="papersGeneral"){
            $(location).attr('href','index.php?controller=reporte&action=reportePaper');
        }else{
            $(location).attr('href','index.php?controller=reporte&action=reporteRevisor');
        }
    }
}